/**
 * mrData对象说明：
 * id：_Menu.vue使用
 * path：router.ts使用
 * name：router.ts使用，如果需要哪个组件不做状态保持，则把Name改掉
 * href：_Menu.vue使用，表示实际转向的路由地址，转向地址为：【/父节点path/当前节点path】
 * component：router.ts使用
 * 如果需要通过菜单直接传参，就在meta这个对象里增加信息就可以了，在对应的页面直接使用 useRoute().meta 就能取到
 */

const Home = () => import("@/views/Home/Home.vue");

const User = () => import("@/views/dbo/User/User.vue");
const Role = () => import("@/views/dbo/Role/Role.vue");
const Department = () => import("@/views/dbo/Department/Department.vue");

const StandStatus = () => import("@/views/base/StandStatus/StandStatus.vue");
const InstallAddress = () => import("@/views/base/InstallAddress/InstallAddress.vue");
const Wirerope = () => import("@/views/base/Wirerope/Wirerope.vue");
const Hoister = () => import("@/views/base/Hoister/Hoister.vue");
const Supplier = () => import("@/views/base/Supplier/Supplier.vue");
const Producer = () => import("@/views/base/Producer/Producer.vue");
const Warehouse = () => import("@/views/base/Warehouse/Warehouse.vue");
const DataDict = () => import("@/views/base/DataDict/DataDict.vue");

const Stock = () => import("@/views/wb/Stock/Stock.vue");
const InBill = () => import("@/views/wb/InBill/InBill.vue");
const OutBill = () => import("@/views/wb/OutBill/OutBill.vue");
const BillQuery = () => import("@/views/wb/BillQuery/BillQuery.vue");
const StockWireropeKeep = () => import("@/views/wb/StockWireropeKeep/StockWireropeKeep.vue");

const UsingWirerope = () => import("@/views/wi/UsingWirerope/UsingWirerope.vue");
const ChangeWirerope = () => import("@/views/wi/ChangeWirerope/ChangeWirerope.vue");
const CheckWirerope = () => import("@/views/wi/CheckWirerope/CheckWirerope.vue");
const GetCheck = () => import("@/views/wi/CheckWirerope/GetCheck.vue");
const MHCheck = () => import("@/views/wi/CheckWirerope/MHCheck.vue");
const UsingWireropeKeep = () => import("@/views/wi/UsingWireropeKeep/UsingWireropeKeep.vue");
const UsingWireropeAttr = () => import("@/views/wi/UsingWireropeAttr/UsingWireropeAttr.vue");
const UsingWireropeSummary = () => import("@/views/wi/UsingWireropeSummary/UsingWireropeSummary.vue");
const ExpertEvaluation = () => import("@/views/wi/ExpertEvaluation/ExpertEvaluation.vue");

const StatusMonitor = () => import("@/views/wi/StatusMonitor/StatusMonitor.vue");
const OnlineStatusMonitor = () => import("@/views/wi/StatusMonitor/OnlineStatusMonitor.vue");
const BeltStatusMonitor = () => import("@/views/wi/BeltStatusMonitor/BeltStatusMonitor.vue");

const GroupInfo = () => import("@/views/glo/GroupInfo/GroupInfo.vue");
const Regulator = () => import("@/views/glo/Regulator/Regulator.vue");

const Message = () => import("@/views/rec/Message/Message.vue");

const ZhangLiMonitor = () => import("@/views/ZhangLi/ZhangLiMonitor.vue");

const mrData = [
    { id: 0, path: "/", name: "Home", href: "/", component: Home, icon: "iconfont icon-shouye", meta: { tabTitle: "首页" } },
    { id: 80000, path: "Message", name: "Message", href: "/Message", component: Message, icon: "iconfont icon-shouye", meta: { tabTitle: "消息通知" } },

    {
        id: 50000,
        path: "Wirerope",
        icon: "iconfont icon-tongji1",
        meta: { tabTitle: "状态监测" },
        children: [
            { id: 50100, path: "StatusMonitor", name: "StatusMonitor", href: "/Wirerope/StatusMonitor", component: StatusMonitor, meta: { tabTitle: "钢丝绳状态监测" } },
            { id: 50200, path: "BeltStatusMonitor", name: "BeltStatusMonitor", href: "/Wirerope/BeltStatusMonitor", component: BeltStatusMonitor, meta: { tabTitle: "钢芯皮带状态监测" } },
            { id: 50300, path: "OnlineStatusMonitor", name: "OnlineStatusMonitor", href: "/Wirerope/OnlineStatusMonitor", component: OnlineStatusMonitor, meta: { tabTitle: "钢丝绳在线状态监测" } },
        ],
    },

    {
        id: 40000,
        path: "Wirerope",
        icon: "iconfont icon-shengchan",
        meta: { tabTitle: "在用绳管理" },
        children: [
            { id: 40100, path: "UsingWirerope", name: "UsingWirerope", href: "/Wirerope/UsingWirerope", component: UsingWirerope, meta: { tabTitle: "在用绳档案" } },
            { id: 40200, path: "ChangeWirerope", name: "ChangeWirerope", href: "/Wirerope/ChangeWirerope", component: ChangeWirerope, meta: { tabTitle: "换绳管理" } },
            { id: 40600, path: "ExpertEvaluation", name: "ExpertEvaluation", href: "/Wirerope/ExpertEvaluation", component: ExpertEvaluation, meta: { tabTitle: "专家评估" } },
            { id: 40300, path: "CheckWirerope", name: "CheckWirerope", href: "/Wirerope/CheckWirerope", component: CheckWirerope, meta: { tabTitle: "在用绳检测" } },
            { id: 40400, path: "UsingWireropeKeep", name: "UsingWireropeKeep", href: "/Wirerope/UsingWireropeKeep", component: UsingWireropeKeep, meta: { tabTitle: "在用绳维保" } },
            { id: 40500, path: "UsingWireropeAttr", name: "UsingWireropeAttr", href: "/Wirerope/UsingWireropeAttr", component: UsingWireropeAttr, meta: { tabTitle: "检测附件记录" } },
            { id: 40700, path: "GetCheck", name: "GetCheck", href: "/Wirerope/GetCheck", component: GetCheck, meta: { tabTitle: "获取钢丝绳检测数据" } },        
            { id: 40800, path: "MHCheck", name: "MHCheck", href: "/Wirerope/MHCheck", component: MHCheck, meta: { tabTitle: "钢丝绳检测" } },       
        ],
    },

    {
        id: 30000,
        path: "Bill",
        icon: "iconfont icon-cangkukucun",
        meta: { tabTitle: "备品管理" },
        children: [
            { id: 30100, path: "Stock", name: "Stock", href: "/Bill/Stock", component: Stock, meta: { tabTitle: "库存管理" } },
            { id: 30200, path: "InBill", name: "InBill", href: "/Bill/InBill", component: InBill, meta: { tabTitle: "入库管理" } },
            { id: 30300, path: "OutBill", name: "OutBill", href: "/Bill/OutBill", component: OutBill, meta: { tabTitle: "出库管理" } },
            { id: 30400, path: "BillQuery", name: "BillQuery", href: "/Bill/BillQuery", component: BillQuery, meta: { tabTitle: "出入库查询" } },
            { id: 30500, path: "StockWireropeKeep", name: "StockWireropeKeep", href: "/Bill/StockWireropeKeep", component: StockWireropeKeep, meta: { tabTitle: "备绳维保" } },
        ],
    },

    {
        id: 60000,
        path: "ZhangLi",
        icon: "iconfont icon-jiance1",
        meta: { tabTitle: "张力差监测" },
        children: [{ id: 60100, path: "ZhangLiMonitor", name: "ZhangLiMonitor", href: "/ZhangLi/ZhangLiMonitor", component: ZhangLiMonitor, meta: { tabTitle: "张力差监测" } }],
    },

    {
        id: 20000,
        path: "Base",
        icon: "iconfont icon-jichushuju",
        meta: { tabTitle: "基础数据" },
        children: [
            { id: 20100, path: "StandStatus", name: "StandStatus", href: "/Base/StandStatus", component: StandStatus, meta: { tabTitle: "状态标准" } },
            { id: 20200, path: "InstallAddress", name: "InstallAddress", href: "/Base/InstallAddress", component: InstallAddress, meta: { tabTitle: "安装地点" } },
            { id: 20300, path: "Wirerope", name: "Wirerope", href: "/Base/Wirerope", component: Wirerope, meta: { tabTitle: "钢丝绳管理" } },
            { id: 20400, path: "Hoister", name: "Hoister", href: "/Base/Hoister", component: Hoister, meta: { tabTitle: "提升机管理" } },
            { id: 20500, path: "Supplier", name: "Supplier", href: "/Base/Supplier", component: Supplier, meta: { tabTitle: "供应商管理" } },
            { id: 20600, path: "Producer", name: "Producer", href: "/Base/Producer", component: Producer, meta: { tabTitle: "制造商管理" } },
            { id: 20700, path: "Warehouse", name: "Warehouse", href: "/Base/Warehouse", component: Warehouse, meta: { tabTitle: "仓库管理" } },
            { id: 20800, path: "DataDict", name: "DataDict", href: "/Base/DataDict", component: DataDict, meta: { tabTitle: "数据字典" } },
        ],
    },

    {
        id: 10000,
        path: "System",
        icon: "iconfont icon-xitongshezhi",
        meta: { tabTitle: "系统设置" },
        children: [
            { id: 10100, path: "User", name: "User", href: "/System/User", component: User, meta: { tabTitle: "用户管理" } },
            { id: 10200, path: "Role", name: "Role", href: "/System/Role", component: Role, meta: { tabTitle: "角色管理" } },
            { id: 10300, path: "Department", name: "Department", href: "/System/Department", component: Department, meta: { tabTitle: "部门管理" } },
        ],
    },

    {
        id: 90000,
        path: "Global",
        icon: "iconfont icon-xitongshezhi",
        meta: { tabTitle: "平台设置" },
        children: [
            { id: 90100, path: "GroupInfo", name: "GroupInfo", href: "/Global/GroupInfo", component: GroupInfo, meta: { tabTitle: "集团" } },
            { id: 90200, path: "Regulator", name: "Regulator", href: "/Global/Regulator", component: Regulator, meta: { tabTitle: "监管部门" } },
        ],
    },
];

export default mrData;
